﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace TfsStatus.Infrastructure
{
	public static class HtmlHelpers
	{
		public static MvcHtmlString ToJson(this HtmlHelper html, object obj)
		{
			return MvcHtmlString.Create(JsonConvert.SerializeObject(obj, new IsoDateTimeConverter()));
		}
	}
}